package java8Up.lambda;

/**
 * @author Fang Ruichuan
 * @date 2022-12-23 14:38
 */

public interface MyComparator {
    boolean compare(int a1, int a2);
}

class Test {
    public static void main(String[] args) {
        MyComparator myComparator = ((a1, a2) -> a1 > a2);
        boolean result = myComparator.compare(2, 5);
        System.out.println(result);
    }
}
